package com

import com.obra.EnderecoDaObra;

import grails.test.*

class EnderecoDaObraTests extends GrailsUnitTestCase {
	protected void setUp() {
		super.setUp()
	}

	protected void tearDown() {
		super.tearDown()
	}

	void testSomething() {
	}
	void testConstraints() {
		mockDomain EnderecoDaObra

		def enderecoDaObra = new EnderecoDaObra()
		assertFalse enderecoDaObra.validate()

		def endereco_ok = 
			new EnderecoDaObra(rua: "Av Colombo",numero: 34
						,cep: "87062-240",loteamento: "12"
						,numData: 1, quadra: "A1" )
		assertTrue endereco_ok.validate()
	}
}
